/*
 * @Description: 
 * @version: 
 * @Author: wyx
 * @Date: 2020-10-05 14:08:47
 * @LastEditDate: Do not exit
 */
import request from '@/utils/request'

/**
 * 登录
 */
export function login(login){
    return request({url:'/member-service/member/login',method:'post',params:login})
}
/**
 * 注册
 */
export function register(member){
    return request({url:'/member-service/member',method:'post',data:member})
}

/**
 *忘记密码,通过电话查询
 * @param {type} 
 */
export function forget(phone){
    return request({url:"/member-service/member/phone/"+phone,method:"get"});
}

/**
 *更新密码
 * @param {type} 
 */
export function update(member){
    return request({url:"/member-service/member/",method:"put",data:member});
}

/**
 * 通过id查询
 */
export function selectById(id){
    return request({url:'/member-service/member/singlemember/'+id,method:'get'})
}